package com.zhinan.exception;

/**
 * @Description: 项目统一错误状态码
 * @Author: ZhiNan
 * @Date: 2023-04-20 14:39
 * @Version: 1.0
 */
public enum ErrMsg {

    WRONG_PASSWORD("300", "密码错误!"),

    USER_EXIST("301", "当前用户已存在!"),

    USER_NOT_EXIST("302", "当前账号不存在!"),

    SYSTEM_ERROR("500","系统内部错误,请技术联系管理员")
    ;


    ErrMsg(String code, String name) {
        this.code = code;
        this.name = name;
    }

    private String code;

    private String name;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
